﻿function addTaskType(button)
{
    var bar = $(button.parentNode);
    var idInput = bar.find("input[name=id]");
    var nameInput = bar.find("input[name=name]");
    var src = "/Task/AddTaskType.aspx?parentId="+idInput.val() +"&parentName="+nameInput.val();
    $("#detailFrame").attr("src", src);
}

function editTaskType(button)
{
    var bar = $(button.parentNode);
    var idInput = bar.find("input[name=id]");
    var src = "/Task/EditTaskType.aspx?id="+idInput.val();
    $("#detailFrame").attr("src", src);
}

function removeTaskType(button)
{
    var bar = $(button.parentNode);
    var idInput = bar.find("input[name=id]");
    var src = "/Task/RemoveTaskType.aspx?id="+idInput.val();
    $("#detailFrame").attr("src", src);
}